package exdate;

import java.time.LocalDateTime;

/**
 * @author: knowno
 * @create: 2025-09-15 09:39
 * @Version 1.0
 **/
public class TestLocalDateTime {
    public static void main(String[] args) {
        //1 创建本地日期对象 LocalDateTime.now()
        LocalDateTime dateTime = LocalDateTime.now();
        System.out.println(dateTime);

        //2 创建指定日期对象 LocalDateTime.of()
        LocalDateTime of = LocalDateTime.of(2025, 9, 15, 12, 00, 15);
        System.out.println(of);
    }
}
